package org.fast.develop.logicflow.core.meta.shape;

import org.fast.develop.logicflow.core.meta.base.Ref;
import org.fast.develop.logicflow.core.meta.base.Resource;
import org.fast.develop.logicflow.core.meta.base.line.Outgoing;
import org.fast.develop.logicflow.core.meta.shape.properties.StartProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 莫寅
 * @createTime 2022-11-23 01:19
 * @desc：
 */
public class Start extends Resource<StartProperties> implements Outgoing {

    private List<Ref> outgoing = new ArrayList<>();

    @Override
    public List<Ref> getOutgoing() {
        return outgoing;
    }

    @Override
    public void setOutgoing(List<Ref> outgoing) {
        this.outgoing = outgoing;
    }


    @Override
    public String toString() {
        return "Start{" +
                "resourceId='" + getResourceId() + '\'' +
                ", outgoing=" + outgoing +
                '}';
    }

    @Override
    public Class<StartProperties> getPropertiesClass() {
        return StartProperties.class;
    }
}
